package com.ruoyi.crm.mapper;

import java.util.List;
import com.ruoyi.crm.domain.RefundPurchase;
import com.ruoyi.crm.domain.CustomerProduct;

/**
 * 采购退款单Mapper接口
 *
 * @author ruoyi
 * @date 2021-08-31
 */
public interface RefundPurchaseMapper
{
    /**
     * 查询采购退款单
     *
     * @param id 采购退款单主键
     * @return 采购退款单
     */
    public RefundPurchase selectRefundPurchaseById(String id);

    /**
     * 查询采购退款单列表
     *
     * @param refundPurchase 采购退款单
     * @return 采购退款单集合
     */
    public List<RefundPurchase> selectRefundPurchaseList(RefundPurchase refundPurchase);

    /**
     * 新增采购退款单
     *
     * @param refundPurchase 采购退款单
     * @return 结果
     */
    public int insertRefundPurchase(RefundPurchase refundPurchase);

    /**
     * 修改采购退款单
     *
     * @param refundPurchase 采购退款单
     * @return 结果
     */
    public int updateRefundPurchase(RefundPurchase refundPurchase);

    /**
     * 删除采购退款单
     *
     * @param id 采购退款单主键
     * @return 结果
     */
    public int deleteRefundPurchaseById(String id);

    /**
     * 批量删除采购退款单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRefundPurchaseByIds(String[] ids);

    /**
     * 批量删除顾客产品信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCustomerProductByIds(String[] ids);

    /**
     * 批量新增顾客产品信息
     *
     * @param customerProductList 顾客产品信息列表
     * @return 结果
     */
    public int batchCustomerProduct(List<CustomerProduct> customerProductList);


    /**
     * 通过采购退款单主键删除顾客产品信息信息
     *
     * @param id 采购退款单ID
     * @return 结果
     */
    public int deleteCustomerProductByCustomerName(String id);
}